package com.peachcastle.events 
{
	import com.peachcastle.net.LoaderItem;
	import flash.events.Event;

	public class LoaderEvent extends Event 
	{	
		public static const LOADERITEM_COMPLETE:String = "loaderitem_complete";
		
		public static const LOADERALL_COMPLETE:String = "loaderall_complete";
		
		public static const LOADER_PROGRESS:String = "loader_progress";
		
		public var progress:int;
		
		public var item:LoaderItem;
		
		public function LoaderEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
		} 
		
		public override function clone():Event 
		{ 
			return new LoaderEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("LoaderEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}